package com.rd.student.jiaji.class3.sunguowei.day28;

import java.io.BufferedReader;
import java.io.FileReader;
import java.util.ArrayList;
import java.util.Scanner;

public class SuiJi {
    public static void main(String[] args) throws Exception{
        Scanner scanner=new Scanner(System.in);
        System.out.println("读取几个同学：");
        int count=scanner.nextInt();
        BufferedReader reader = new BufferedReader(
                new FileReader("all.txt"));
        ArrayList arrayList=new ArrayList<>();
        String line = null;
        while (true){
            line = reader.readLine();
            if (line == null) break;
            arrayList.add(line);

        }

        reader.close();


    }
}

